package demo;

import com.sun.istack.internal.NotNull;

/**
 * 测试switch关键字
 *
 * @author sun.ye
 * @since 2020-05-08 09:35
 */
public class SwitchNull {

    public static void main(String[] args) {
        switchNull(null);
    }

    private static void switchNull(@NotNull String param) {
        switch (param){
            case "sth" :
                System.out.println("sth");
                break;
            case "null" :
                System.out.println("null");
                break;
            default:
                System.out.println("default");

        }
    }

}